//
//  CNActionSheet.h
//  CsdnPlus
//
//  Created by 孟瑞瑞 on 2018/7/19.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import <UIKit/UIKit.h>
@import SwiftTheme;
@class CNBBSActionSheet;

@protocol CNActionSheetDelegate <NSObject>

- (void)actionSheet:(CNBBSActionSheet *)actionSheet clickButtonAtIndex:(NSInteger )buttonIndex;

@end

@interface CNBBSActionSheet : UIView

// 支持代理
@property (nonatomic,weak) id <CNActionSheetDelegate> delegate;

// 支持block
@property (nonatomic,copy) void (^ClickIndex) (NSInteger index);



/**
 根据数组进行文字显示,返回index
 @param titleArr 传入显示的数组
 @param show 是否显示取消按钮
 @return return value description
 */
- (instancetype)initWithTitleArray:(NSArray *)titleArr
                     andShowCancel:(BOOL )show;

- (void)updateUIWithTitleColor:(ThemeColorPicker *)titleColor titleFont:(CGFloat)titleFont isShowSeparator:(BOOL)isShowSeparator;

@end
